<div id="content">
                    	<h3>Sửa thông tin tài khoản quản trị</h3>
                        
                        <a class="back" href="<?php echo base_url() ?>index.php/Quanlytaikhoan/index">Quay lại</a>  
                            
                        <div id="contentFunc">
							  <?php 
                                  $attributes = array('id'=>'frmCapNhatTK','name'=>'frmCapNhatTK','enctype'=>'multipart/form-data');
                                  echo form_open_multipart('Quanlytaikhoan/sua/'.$taikhoan['matk'],$attributes);
                              ?>
                              
                              <div class="blockSP">
                                <label class="lblTaiKhoan" for="txtTenTK">Tên tài khoản:</label>
                                <input class="input" type="text" id="txtTenTK" name="tentaikhoan" value="<?php echo $taikhoan['tentaikhoan']?>"/>
                              </div>
                              
                              <div class="blockSP">
                                <label class="lblTaiKhoan">Mật khẩu:</label>
                                <input class="input" type="password" id="txtMatKhauTK" name="matkhau" value="<?php echo $taikhoan['matkhau']?>"/>
                              </div>
                              
                              <div class="blockSP">
                                <label class="lblTaiKhoan" for="txtHoTenTK">Họ tên:</label>
                                <input class="input" type="text" id="txtHoTenTK" name="hoten" value="<?php echo $taikhoan['hoten']?>"/>
                              </div>
                              
                              <div class="blockSP">
                                <label class="lblTaiKhoan" for="txtDiaChiTK">Địa chỉ:</label>
                                <input class="input" type="text" id="txtDiaChiTK" name="diachi" value="<?php echo $taikhoan['diachi']?>"/>
                              </div>
                              
                              <div class="blockSP">
                                <label class="lblTaiKhoan" for="txtSdtTK">Số điện thoại:</label>
                                <input class="input" type="text" id="txtSdtTK" name="sodienthoai" value="<?php echo $taikhoan['sodienthoai']?>"/>
                              </div>
                              
                              <div class="blockSP">
                                <label class="lblTaiKhoan" for="txtEmailTK">Email:</label>
                                <input class="input" type="email" id="txtEmailTK" name="email" value="<?php echo $taikhoan['email']?>"/>
                              </div>
                              
                              <div class="blockSP">
                              <label class="lblTaiKhoan" for="txtTrangThaiTK">Trạng thái:</label>
                              <?php 
									if(isset($taikhoans))
									{
										$options = array(
												'0'=>'Không hoạt động',
												'1'=>'Hoạt động'
											);
										
										if(isset($taikhoan['trangthai']))
										{
											echo form_dropdown('trangthai', $options, $taikhoan['trangthai']); 
										}else echo form_dropdown('trangthai', $options);
									}	
							   ?>
                               </div>
                              
                              <div class="blockSP">
                              <label class="lblTaiKhoan" for="txtQuyenTK">Quyền:</label>
                              <?php 
                                  echo "Quản trị";
                              ?>
                                <!--<input class="input" type="hidden" id="txtQuyenTK" name="quyen"/>-->
                              </div>
                              
                              <div class="thongbao_err">
								  <?php 
                                    echo validation_errors();
                                    if(!empty($img['error_upload']))
                                    {
                                        echo $img['error_upload'];
                                    }
                                    
                                    if(!empty($thongbao))
                                    {
                                        echo $thongbao;
                                    }				
                                  ?>
                              </div>
                              
                              <div class="blockSP button">
                              	<input type="submit"  id="btnSuaTK" value="Lưu" />
                				<input type="reset" name="btnHuyBo" id="btnHuyBo" value="Hủy bỏ" />
                              </div>
                           </form>
                        </div>
                    </div>
            </div>